set(SYSROOT_ /opt/hisi-linux/x86-arm/arm-himix200-linux/host_bin/../target)

find_path(FFTW_INCLUDE_DIR fftw3.h
  PATHS ${SYSROOT_}/usr/include
)

find_library(FFTW_LIBRARY NAMES fftw3
  PATHS ${SYSROOT_}/usr/lib
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FFTW DEFAULT_MSG FFTW_LIBRARY FFTW_INCLUDE_DIR)

if(FFTW_FOUND)
  set(FFTW_LIBRARIES ${FFTW_LIBRARY})
  set(FFTW_INCLUDE_DIRS ${FFTW_INCLUDE_DIR})
  message(STATUS "FFTW found version: " ${FFTW_VERSION})
  message(STATUS "FFTW include directories: " ${FFTW_INCLUDE_DIRS})
  message(STATUS "FFTW libraries: " ${FFTW_LIBRARIES})
endif()
